package jdbc418;

/**
 * @Author:SA
 *封装从数据库dept表中查询的字段值  一条记录 -> dept 对象
 */
public class dept {
    private int dept_no;
    private String dept_name;
    private String adress;

    public dept(int dept_no, String dept_name, String adress) {
        this.dept_no = dept_no;
        this.dept_name = dept_name;
        this.adress = adress;
    }

    public dept() { }

    public int getDept_no() {
        return dept_no;
    }

    public void setDept_no(int dept_no) {
        this.dept_no = dept_no;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    @Override
    public String toString() {
        return "dept{" +
                "dept_no=" + dept_no +
                ", dept_name='" + dept_name + '\'' +
                ", adress='" + adress + '\'' +
                '}';
    }
}
